code: def test_set_legend_location(self):
      data = chartify.examples.example_data()
      ch = chartify.Chart(x_axis_type="datetime")
      ch.plot.scatter(
          data_frame=data,
          x_column="date",
          y_column="unit_price",
          size_column="quantity",
          color_column="fruit",
      )
      ch.set_legend_location("top_right")
      assert ch.figure.legend[0].location == "top_right"
      assert ch.figure.legend[0].orientation == "horizontal"
      ch.set_legend_location("top_left", "vertical")
      assert ch.figure.legend[0].location == "top_left"
      assert ch.figure.legend[0].orientation == "vertical"
      ch.set_legend_location("outside_bottom")
      ch = chartify.Chart(x_axis_type="datetime")
      ch.plot.scatter(
          data_frame=data,
          x_column="date",
          y_column="unit_price",
          size_column="quantity",
          color_column="fruit",
      )
      ch.set_legend_location(None)
      assert ch.figure.legend[0].visible is False
  
file_path: chartify/tests/test_chart.py
imports: import chartify
  import numpy
  import pandas
  import pytest
  from selenium.common.exceptions import WebDriverException
label_desc: Use image node_id 1 for calling the TestLegend obj's underlying member method code with example usage: obj.test_set_legend_location() without return types